package com.coincalf.service;

import com.coincalf.framework.security.UserDetails;
import com.coincalf.web.vo.UserLoginForm;
import org.springframework.security.core.userdetails.UsernameNotFoundException;

/**
 * @author qiang
 */
public interface UserDetailsService extends org.springframework.security.core.userdetails.UserDetailsService {

    @Override
    UserDetails loadUserByUsername(String username) throws UsernameNotFoundException;

    UserDetails login(UserLoginForm form);

    UserDetails oauth(String access_key, String secret);

    String refreshToken(String oldToken);

    String phpLogin(String token);
}
